Added mocked test rule to unit test base.

That's better than tricking the constructor by giving it bogus arguments.