Testing that a crypto object is called on init