Add test for username isn't in the table, removed extra dependency