Adding more thorough tests.
Using test#error instead of test#notOk for node errors.