Updated expectations based on XQuery changes and added license headers
where missing