Add offset and limit tests

The code was already in place.