fix random test on business archive
add integration test with a complexType in contract