Refactor LexError tests
Extend ast.Num to nodes.Num with type attribute