Fixed test_get_file_extensions() on Python 3.

(removed dependency on dictionary iteration order)