Cleaning up _class

Added the error messages and unit tests.

Enhanced unit test suite so that you can easily say which user is
theoretically making requests.