begin rspec tests for cipher