fixed bug in readTest()