Added tests for get_master method