[#3] Modified test so that it check the output to stdout.