Write unittests for verifying and signing update messages