test for readfile