h8300: Make tests compatible with /bin/sh

Tests are bash-specific, let's make them work for sh.