Added test case for invalid stream in cache