Fix environment tests
Use constant for default implementation