Add some test helpers.

typo: sample.