Create a test for Parser.openbib
Add test for opendb
Refactor generate and add test