Ensure `error` is not defined in tests

Closes #3