added tests and added configurable paths