Added tests to exercise generation of the cases expression
Generation of the cases expression is now supported