Some bibtex refactoring
Fixed words connector on bibtex
Added tests for search
Refactored tests
Merge pull request #53 from Eepa/tests

Added tests for search
refactored search from horrible to decent