Added test cases that verify that the functionality works as expected. Also made Mariadb_nodes::change_master less verbose when one of the nodes is down.