         do {
             let result = try generatedStringSerialization(for: "a=\"a\"")
             
-            XCTAssert(result == "{(\"a\")}►a", "Bad generated output '\(result)'")
+            XCTAssertEqual(result,"~({(\"a\")}►a)")
         } catch (let error){
             XCTFail("\(error)")
         }

        _STLR.register(optimizer: InlineIdentifierOptimization())
        _STLR.register(optimizer: CharacterSetOnlyChoiceOptimizer())
        do {
            let reference = "letter = (@error(\"error a\") \"a\" | @error(\"error b\") \"b\" | @error(\"error c\") \"c\")"
            let result = try generatedStringSerialization(for: "letter = @error(\"error a\") \"a\"| @error(\"error b\")\"b\"| @error(\"error c\") \"c\"").replacingOccurrences(of: "\n", with: "").replacingOccurrences(of: "\t", with: "")
            
            
            XCTAssertEqual("{(@error(\"error a\") \"a\" | @error(\"error b\") \"b\" | @error(\"error c\") \"c\")}►letter", result)
            
        } catch (let error){
            XCTFail("\(error)")

    func testTerminalSequence(){
        do {
            let result = try generatedStringSerialization(for: "letter = @error(\"error\") (\"a\" \"b\" \"c\")")
            let reference = "~({(@error(\"error\") ~(\"a\" \"b\" \"c\"))}►letter)"
            XCTAssertEqual(result, reference)
            
        } catch (let error){
