improve tests

not exactly correct after matching multiple transitions