updating test to allow err callbacks
being more careful about not emitting things after an error. closes #7.