limit and offset unit tests