Update errors_tests.js

Updated test to reflect API change.
Merge pull request #1 from MasterAM/master

Update errors_tests.js