add tests for new crypto functions