Add tests for new functionality of cpymad.madx

Missing tests are indicated by comments.
Use 'except NULL' clause for cdef function

Needed to propagate an exception from the function.
Evaluate expressions

It turns out, when an expression is defined via the := operator, MAD-X
does not store an evaluated value in the command.