remove hashbang from index.js.
use tap.X instead of require('tap/lib/X').
test exit codes of sample tests.