Two new tests for shifts followed by ands