Updated crypto tests to match new API