test: fix if expression