Correctly retrieve test and tasks for results summary on empty db