Add smoke test specs for ct and ts

Also fix a couple of bugs