check env.called in unit tests