minor stored procedure fixes in integration tests