fix Test in if condition