Fixed an error on emitAnd and filled out the test file finalexam-test.cl