Fixed tests for modes of dir in method updateMac.
Finished implementation for updateMac, all tests pass.