adding test for using layer cache