Abstracted conversion of occur from unit tests to allow easier conversion between api's