Migrated and added unit tests for signing-utils.js