Fix error with big-endian tests

Signed-off-by: Anton Kolesov <akolesov@synopsys.com>