Inlined InMemoryPersistenCacheDecoratorFactory into TaskExecutionServices.
Use a platform detecting test app for the target platform int tests.