Fix the testrun function to manage the make install behavior