output test to text file