Added QueryBuilderTester

- Utility class for testing the QueryBuilder.
[QBTester] Added "getAllNodes" and made exception messages better
Fixed test
Merge pull request #332 from dantleech/qb2_test_class

Added QueryBuilderTester