fixed batrch request test, mocked File open, added writing autth and sale to batch file