count and offset tests