fix sed syntax to work with Mac OS X built-in sed
fix the CatTest so that the buld stops complaining about failed tests