Add integration test for profile api