Fixes #8210 - Adding caching for smart-proxy puppet classes using Stefan Julin's implementation of cache

I know you didn't write this test, but -- what is being tested here? That ClassScanner returns an empty array for a non-existent directory? If that's useful then let's rename the test, otherwise let's kill it.