working on unit tests, hopefully fixing password reset issue