Fixed some things in testing.R to match the new version of mechanisms.R