Modifications to the unit tests script to adapt the enviroment for the tests