fix a couple of bugs in cnd parsers and move functional tests to phpcr-api-test