Adjusted pytest annotations in scoremanager tests.
Sorted all calls to os.listdir() in scoremanager.