Refectored tests
Fixed Read file method