complete testing for database methods involving users