Adapted new default $mode in spec-test