add test for query with start/end params