Converting tests to coffeescript