Switch test to only fire on resize