fix phase labels in makefile, and throw an error on failing tests