Fix error caused by deep copy

Add objective library (usefull for test purpose)