moved getwork checks to testcases