Use if instead of test