Tests cleanup - adding test to verify caching of generated instances