Migrate tests from Javascript to Coffeescript