Added a few cmpa tests to ea_test. Finished CMPA in autotest.