Minor improvements to robustness of BibTex parsing.
Added some more tests and enabled coveralls.