integration tests and logging improvements for cache and workflow