tests: wrong condition fixed