added tests && fixed bug with createReadStream's end option
added test for nested prefixes
Merge pull request #4 from alessioalex/master

Fixes #1 and #3