Added unit tests for refactored mdadm module.

- test that mdadm.create returns the proper cmd.run inputs
- test that test_mode=True does not call cmd.run