Wrote more mac_user tests, found and fixed bug

Wrote several more mac_user tests, cleaned up some of my assertions, and found and fixed a suspected bug.

@terminalmage can you please review my change in salt/modules/mac_user.py and make sure it still performs as you expected? When testing the bad_groups issue specifically, I was getting a TypeError with bad_groups in addition to the SaltInvocationError.