barrier infinity/zero tests