Added tests in coffeescript