Port javascript test to coffee-script.