Updated unit tests to work somewhat better

Adjusting dir_mnitoring to try to work with the unit tests