adding validation test for output with list