Fix failing test

There's other places that a string is used for throwing an error, they should also be switched to `ne Error(string)`