Added handling of ERRORs in tests (e.g. misspelled function in test code)