added test alert to regret.js