removed fields and added testing functionality
fixed issue with writing to test file and shortened test output