Add tests, and coffeescript configurability