Updated tests to work with user database