fix deployment in test mode in the rigth direcotries