table/definition: fix some warnings
test: update tests to new on_exit stuff