TestOutput implemented and main