Fix Bibtex import, and re-add test