Add tests for profile.