changed unittest so the compiler doesn't think a statement is unreachable