Various fixes to error handling.
Typos.
Fixed: test for before/after
Fixed: test for .run
Fixed: tests for multi-emit
Removed: obsolete file
Fixed: .val gets updated now
Fixed: typos in tests
Removed: obsolete file