JUnit tests to check that everything works correctly. The JUnit package needs to be used with these test.