Fix test script. Were missing an &&.
Implements bailing on decoding unicode.
Make sure we don't dereference null frame. DRY into a function.