added sort and populations tests
added pagination query tests
fixed query variable usage in search method
added sorting tests
Rest sort and population support