Throws an error on unregistered environment name.
Updated test.
Updated to v0.4.0