minor cleanups to tests
fixed minor test failure
fixes #1499 - show puppet environments and classes over the API