adding some tests
exporting query functions
adding is-goal
more tests