add missing 'return' for promises in integration tests