fix syntax in example
add tests for clazz() and trait()