minor refactorings, changing the name of QuerySolution to SOlution
adding error tests in a separate class
adding tests for answering java objects in queries