Remove unused testing code

These testing helpers are no longer used, they also have some
questionable implementation choices.

Change-Id: Ia9f04720c0319a54dd07467f0b0bb22631a8573e
Merge "Remove unused testing code"