Tasks tests. Cache service tests and improvement.