fixes #6856 - API v2 - more efficient import puppetclasses for single environment

@eLobato, added context block, but a side effect is now both tests have stubs for returning `classes_env1` and `classes_env2`