change tests to coffeescript