fix typ wrapper invocation of main, add -x/--exclude option to skip tests