add test for this pull request
test that ready gets fired only once
wait for env.rs to be initialized in unit test