Fixed test driver code