Test file for mechanisms.R