Fixed test module bugs.