Index: test/sasdataloader/test/utest_ascii.py
===================================================================
--- test/sasdataloader/test/utest_ascii.py	(revision 959eb0181ad06828a748f04512f953aad5b31659)
+++ test/sasdataloader/test/utest_ascii.py	(revision b09095a7f7ba6ae5e7ee28a9d240400222cbae19)
@@ -6,12 +6,21 @@
 
 import unittest
-from sas.sascalc.dataloader.loader import  Loader
- 
-import os.path
+from sas.sascalc.dataloader.loader import Loader
 
-class abs_reader(unittest.TestCase):
+
+class ABSReaderTests(unittest.TestCase):
     
     def setUp(self):
         self.loader = Loader()
+        self.f1_list = self.loader.load("ascii_test_1.txt")
+        self.f1 = self.f1_list[0]
+        self.f2_list = self.loader.load("ascii_test_2.txt")
+        self.f2 = self.f2_list[0]
+        self.f3_list = self.loader.load("ascii_test_3.txt")
+        self.f3 = self.f3_list[0]
+        self.f4_list = self.loader.load("ascii_test_4.abs")
+        self.f4 = self.f4_list[0]
+        self.f5_list = self.loader.load("ascii_test_5.txt")
+        self.f5 = self.f5_list[0]
         
     def test_checkdata(self):
@@ -19,13 +28,12 @@
             Test .ABS file loaded as ascii
         """
-        f = self.loader.load("ascii_test_1.txt")
         # The length of the data is 10
-        self.assertEqual(len(f.x), 10)
-        self.assertEqual(f.x[0],0.002618)
-        self.assertEqual(f.x[9],0.0497)
-        self.assertEqual(f.x_unit, '1/A')
-        self.assertEqual(f.y_unit, '1/cm')
+        self.assertEqual(len(self.f1.x), 10)
+        self.assertEqual(self.f1.x[0],0.002618)
+        self.assertEqual(self.f1.x[9],0.0497)
+        self.assertEqual(self.f1.x_unit, '1/A')
+        self.assertEqual(self.f1.y_unit, '1/cm')
         
-        self.assertEqual(f.meta_data['loader'],"ASCII")
+        self.assertEqual(self.f1.meta_data['loader'],"ASCII")
         
     def test_truncated_1(self):
@@ -38,10 +46,8 @@
             as though it were the start of a footer).
         """
-        # Test .ABS file loaded as ascii
-        f = self.loader.load("ascii_test_2.txt")
-        # The length of the data is 10
-        self.assertEqual(len(f.x), 5)
-        self.assertEqual(f.x[0],0.002618)
-        self.assertEqual(f.x[4],0.02356)
+        # The length of the data is 5
+        self.assertEqual(len(self.f2.x), 5)
+        self.assertEqual(self.f2.x[0],0.002618)
+        self.assertEqual(self.f2.x[4],0.02356)
         
     def test_truncated_2(self):
@@ -52,10 +58,8 @@
             reading at the first inconsitent line.
         """
-        # Test .ABS file loaded as ascii
-        f = self.loader.load("ascii_test_3.txt")
         # The length of the data is 5
-        self.assertEqual(len(f.x), 5)
-        self.assertEqual(f.x[0],0.002618)
-        self.assertEqual(f.x[4],0.02356)
+        self.assertEqual(len(self.f3.x), 5)
+        self.assertEqual(self.f3.x[0],0.002618)
+        self.assertEqual(self.f3.x[4],0.02356)
         
     def test_truncated_3(self):
@@ -66,10 +70,8 @@
             reading at the last line of header.
         """
-        # Test .ABS file loaded as ascii
-        f = self.loader.load("ascii_test_4.abs")
         # The length of the data is 5
-        self.assertEqual(len(f.x), 5)
-        self.assertEqual(f.x[0],0.012654)
-        self.assertEqual(f.x[4],0.02654)
+        self.assertEqual(len(self.f4.x), 5)
+        self.assertEqual(self.f4.x[0],0.012654)
+        self.assertEqual(self.f4.x[4],0.02654)
         
     def test_truncated_4(self):
@@ -78,16 +80,14 @@
             Only the last 5 2-col lines should be read.
         """
-        # Test .ABS file loaded as ascii
-        f = self.loader.load("ascii_test_5.txt")
         # The length of the data is 5
-        self.assertEqual(len(f.x), 5)
-        self.assertEqual(f.x[0],0.02879)
-        self.assertEqual(f.x[4],0.0497)
+        self.assertEqual(len(self.f5.x), 5)
+        self.assertEqual(self.f5.x[0],0.02879)
+        self.assertEqual(self.f5.x[4],0.0497)
         
     def test_truncated_5(self):
         """
-            Test a 6-col ascii file with complex header where one of them has a letter and 
-            many lines with 2 or 2 columns in the middle of the data section.
-            Only last four lines should be read.
+            Test a 6-col ascii file with complex header where one of them has a
+            letter and many lines with 2 or 2 columns in the middle of the data
+            section. Will be rejected because fewer than 5 lines.
         """
         # Test .ABS file loaded as ascii
Index: test/sasdataloader/test/utest_averaging.py
===================================================================
--- test/sasdataloader/test/utest_averaging.py	(revision 9a5097cd1c76689d1f997b85ba43d12a95d8f243)
+++ test/sasdataloader/test/utest_averaging.py	(revision b09095a7f7ba6ae5e7ee28a9d240400222cbae19)
@@ -3,5 +3,5 @@
 import math
 
-from sas.sascalc.dataloader.loader import  Loader
+from sas.sascalc.dataloader.loader import Loader
 from sas.sascalc.dataloader.manipulations import Ring, CircularAverage, SectorPhi, get_q,reader2D_converter
 
@@ -110,5 +110,6 @@
         
         o = r(self.data)
-        answer = Loader().load('ring_testdata.txt')
+        data_list = Loader().load('ring_testdata.txt')
+        answer = data_list[0]
         
         for i in range(r.nbins_phi - 1):
