Created tests for use with tap, moved old test scripts under example/ and made jshint less unhappy.