add test for crypto package (issue #59, improve code coverage)