Stored procedure for updating next run time and test for it.