Added tests for convert_variable_to_type