adding test for api button on profile page