added unit tests for infinite scroll