Add  tests for validations and change decrypt method to raise error