Introduced AST comparison and error checking for all M1 tests