more tests for user and database