Fix: functional test for envSpec