integration test for resetting password