Compact unary testing