tests: shunit2: fix issues reported by shellcheck