Add through and clean tests.

Write tests that check every statement and branch of the ot module,
easily runnable by using the test.sh script in ot/test.