Doesn't matter where the aircraft is registered, CASA can do a random drug and alcohol check on any foreign flight crew in Australia if they are on duty.
Refusal to do give a sample will still attract a fine.
Wonder if the pilot involved got tea and biscuits on his/her arrival back in DXB.