Mac user integration test

First crack at writing an integration test - it's for the mac_user module.