Test with console mocking