Test higher-level API

_get_environment() is about to go away.