Test class for the REST controller

Utility class for testing purposes.