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

That's fine, the first test will just fail the ```refuse_includes``` now, without the stub it'll raise an exception (both are failures). :smile: merge in 3...2..1