Fixing issue with UserRepository where a missing result would throw exception
Adding console command for setting up the test environment