Adds public methods for testing current environment.