fixed OpenSSL::Digest deprecated warnings
Rspec syntax changes from 2 to 3 using transpec gem
Fixed rspec syntax and warnings