Added test for start and end values in query builder