convert tests to coffeescript