added crypto and changed unit test to not fail