fixing uncaught errors display; adding tests for errors