added decrypt

added decrypt and added tester to unit test