Move the test inside canUseDOM