Added tests for the Uncaught Error