Added some test cases and refactored keyword cipher out into a separate function