Added tests for directive and condition elements. Found a bug where
integer values were being compared to string values where condition
elements had variable attributes from the filer context but an integer
for the value attribute. The lxml code converts the attribute value to
string automatically, so the filer context was updated to convert all
values to strings.