Added test for internal caching