Refatoring TestInstance.