Add PowerMockito tests to verify System.exit() behaviour and mock objects.