better test for checking output