changed test file reading from loadtxt to csv reader