The series of mandatory tests and scans before foreign horses depart were brought in following a spate of deaths in the Melbourne Cup (G1) in recent years .