Use coffeescript and add integration test