add automated tests for maguire.js