## 1 Introduction  
The development of the Smart Grid is contributing to the integration of renewable energy into the electric grid, which guides the needed decarbonization of energy consumption to deal with climate change and the depletion of fossil fuels. However, this development is increasing the complexity of the electric grid [1], adding new power system elements which must provide reliable operation in all kinds of different situations. One of these new systems is the Electric Vehicle Supply Equipment (EVSE), which is required for the grid integration of the Electric Vehicle (EV), including Battery Electric Vehicle (BEV) and Plug-in Hybrid Electric Vehicle (PHEV). Thanks to the Vehicle-to-Grid (V2G) functionality, the EVSE can work both as a load or as a generation source, using the energy of the EV battery available for secondary purposes, such as peak shaving, load frequency control, demand response or the management of renewable energy surplus [2, 3].  
It is expected than in 2030, more than the 90% of the EVSE will be private [4], while over the 80% of EV charging currently takes place at home [5]. Accordingly, the main domains for V2G functionality will be Vehicle-to-Building (V2B) or Vehicle-to-Home (V2H), whether the building is connected to the grid or isolated, where several advantages has been proved [6]. In order to use this functionality, EVSE must be integrated into the building Energy Management System (EMS), which will handle the charging or discharging according to the needs of the building [7, 8]. Therefore, to ensure the proper behaviour of these new systems, the research of suitable test systems can establish the Smart Grid development [9, 10].  
There are several test system techniques in the literature, but the ones that exchange real power with the Hardware-Under-Test (HUT) give the most accurate results, due to the fact that they can probe the full system. A very promising technique to test the full system is the Power Hardware-In-the-Loop (PHIL) technique, which has the best trade-off between test fidelity and test coverage [11]. However, in applications like testing EV chargers, in which the number of tests carried out can be very high and they have a very defined functionality, the PHIL technique can be replaced by a power test bed, or also known as machine emulator [12].  
Electric Vehicle Emulators EVE are powerful tools to develop and test EV charging stations. They have been used for a while for testing EVSE communication [13], unidirectional power [14; 15] or unidirectional power and communications [16; 17]. Besides, the requirements needed for a test bench based on PHIL for testing and verification of EV and EVSE are defined in [18]. However, bidirectional vehicles and chargers have a better impact on the stability of the Smart Grid, offering expanded flexibility services [5]. Therefore, the testing of these systems is an important step in the development of the present and future power electric grid.  
This paper presents the details of the design and development for manufacturing the electric vehicle emulator for testing V2G chargers, with power factor grid correction functionality. The paper is organized as follows. Firstly, Section 2 analyses the main needs of the Electric Vehicle Emulator (EVE). The design of the system is described in Section 3, explaining every developed component. Then, in Section 4 the complete test system and some of the main results are shown. Finally, the conclusions are drawn in Section 5.