Fix crash related to non existent primary key
Fix boolean tests
Fix primary keys tests
Merge pull request #76 from noplay/fix_unit_tests

Fix unit tests
Travis CI