As the REST API is a part of the core, it is more appropriate for the tests to reside there as well. Further refactoring of the testing needs to be done to allow multiple components to use the same framework but with different tests.
The REST API tests are now located under the maxctrl directory. This allows both tests to use the same framework for testing.
Currently only the `pretty=true` option is supported but it is also tested.