Fix list

Only the file one level under the bucket dir were listed and when in the bucket there is a directory a error is return.

* Add tests for checking if blob in directory in a bucket is listed