Add JUnit test for BibDatabase