Fix handling of require with tests