add c2ndps
improve tests. also add failed tests (TODO)