added test for updating existing profile