Fix some tests
Invalid XML/JSON path now produces exceptions
Add support for Promote