provider/maas: fixes lp:1392390

Fix for loop used for maas availability zone selection.
Add tests for maas availability zone selection.

  * Bug: https://bugs.launchpad.net/juju-core/+bug/1392390 
FWIW, I'd write this as "return &node, nil" since err cannot be non-nil here.