add tests for profile