added plaintext rspec tests.