Add test cases for TemporaryReader.

Added two test cases which check if reading files of similar formats
(test for readTrainingData(), training for readTestData()) throws an
exception.