Write tests for create user in database