Adapted testcase to new error system