Run nosetest in pre-restore-code hook on target instance