Fix a bunch of different unit test problems.