added unit tests for signed session encryption, fixed compatibility bugs in regards to signed session encryption.