added unit tests
added coffeescript tests