Add test helper. Closes #2.