restapi: Improve Performance in mapper tests

Change-Id: I29908ea9d5cf232a3079f28927b70ad0ce37a010
Signed-off-by: Ori Liel <oliel@redhat.com>