Disk encryption test cases.

Thanks, has updated the code.