fixed validating of signed API responses, the outgoing and incoming hashes are not compatible. updated the test too