Fixing a bug with Metadata Signature Creation + adding system tests for the RP