adding more tests. Fixing how directories are handled
release 0.0.21