added test for password change
removed unused code