Fix issue with recursive parent path search
+ Add test for rewritten core cache model