Write integration test for resetting password