Added a save to m2m in EditUserForm and a test to verify

Refs #619