Add test for stored procedure