added output check to test