Remove unused fields/member functions from unit test.