Fix an incorrect assertion when parsing expressions
Improve the expression parsing tests