added possibility to get input stream to downloader
added two small junit test classes