Merge BadRequest tests of "get console output" API

In test_console_output, there are BadRequest tests of "get console output".
Most parts of them are duplicated.
This patch merges them for the readability and clarifying their purposes.

Change-Id: Ia83cf1b77a7a185a195286234d7f943d0ca7537f
Merge "Merge BadRequest tests of "get console output" API"