Add and test changePassword function