added a test and extended the bindings to make real use of the cmc lib