Fix HC porting test in makefiles