docker: Makes code of tests more simple and readable.

Signed-off-by: Jiří Župka <jzupka@redhat.com>