Adds QueryLoader class and its test suite