Fix some bugs.
Adapt testBridgeRuleParser.