test if the output is right