ktest: Add DEFINED keyword for IF statements