add unit tests for query builders