Corrected some minor faults in unit tests.