Add JUnit tests of backend controllers