Fixing error tests.
Using tap instead of tape.
Merge pull request #7 from ljharb/fix_tests_in_node_10

Fix tests in node 10