Added test for cue parsing, including tests for #877