Added tests for conversion to enum types.