Remove reduntant code from a test.