Test for the Console.stackTrace in different cases.