Fix coffeescript directive test

'element text()' throws "ReferenceError: text is not defined" error.