fix bug with no output in test