Adding module tests
Remove property assignment
Docstring update and only create dir when location is set.