encrypt test case passed, comments added