Move logging, updating and testing utils into common directory