Added unit test comparing stdout, stderr.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>