added more assertions in integration test