added unit test for encrypt library