Improve tests and rakefile
Add test_cipher