Added unit tests for cache of enabled apps