add test and decrypt method