Modified the MARS test to check for hazards