Invalidate block cache for a reader on close and

Test case for reader cache