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

@eLobato, note that I don't call `setup_import_classes` on this test. Whenever I changed this, it messed up other tests.