Add unit tests for Profile.