add support for empty folder listing
fix tests
tag v0.5.8