Added tests for the regulation compiler function