Update subclass method to be compliant with the coffeescript class style
add a small unit test for coffeescript class