json response test and stdoutstream test