building persistence logic for test scheduling