Added more unit tests
Added QueryController docs