Add test for proposed API for env