Stubbing `environment` might cause problems.