Error handling for TC 4.3

TC stands for testcase, swedish "testfall".