Add C++ test for user defined conversion