cache hit test with multiple tasks; code for testing and debugging added