fix testcase to build (needs to be improved)