redirect stdout for validator output during testing
added parser object to validator