parser_tests: Move cue validation to test_util.

And tidy it up a bit.

Change-Id: I68e7f16ad2aa922fdb064802e8986a6955364c32
3 files changed