[Console] Added status code to CommandTester and ApplicationTester

Theses classes are already statefull. They contain the input and the
output data. So we can safely add the last status code to the class.