Add API unit test for user password change