Add unit test for profile accessor