Expose condition-key
Move test functions out of tinhole into tinhole_test.