removing unnecessary prints and file writing in tests