fix small bug; testdata should be data