working readfile mock