added test for cached method