Adds tests for tag expressions
Adds support for tag expressions and improve default chain ordering