Replace tests with env-tests.js