Added decrypt function using key and test for it
merge