testing MAH code with unit_test.js