FIX for issue 1015

Deleting a test script should delete all of the associated results because the information about the test script (ie the name of the script and the max marks for the script) is no longer in the database and the results become useless. If the test script is deleted, then we don't need the results from it.