Create tests file, add invalid query tests

These might be overkill, it's my first time using TDD