More mac_user tests

Wrote a bunch of mac_user unit tests, fixed some pylint errors, and added some comments for clarity. 

There is only one more function to test in this class! :)