fixed up namespaces
added test suite in coffescript