Made amd cache along with test