adapt junit-testcases