fix onlyif test