JUnit tests for the Database API