corrected test for trait keyword