completed integration tests for resetting password