Add tests to editPw