unit test for signing/verifying messages