modified unit tests and corrected calculation for getting window innerHeight instead of outerHeight for infinite scroll