Fix error in the _mountPointsToMonitor function and sanitize unit tests