fix boilerplate in test script
add tests for XML signing and verifying signatures