[PATCH 2/2] unit: Add unit test for the cipher infrastructure