New tests for functions in mechanisms.R