The test sets and clears server states and verifies it via the REST API. It also checks that only correct arguments are accepted.
Added basic tests for maxctrl. They simply test that the diagnostic commands work.