using insert function of vector in main.cpp, test operator= code in test.cpp and test.h