Test class for the REST controller.