tests: minor changes to make tests more portable

Signed-off-by: Karel Zak <kzak@redhat.com>