adding test cases for profiles api