add the mocha stubbing and mocking library
add test coverage for when we don't have any users

It wasn't being covered in the functional test for this controller.