Added tests For CachingInputStream