complete testing for database methods involving users (finally)