Added some tests for profile.