JUnit tests back end