tests: add check to verify --reason and --why work

Signed-off-by: Sami Kerola <kerolasa@iki.fi>