improved erlang errorformat and test case lookup