Added tests for cases syntax