Add 'allow_user_terms' option to the ct_run_test/1 call in ts
Fix various bugs in support functions
Fix a few problems with the API