Test unclosed if