[cleanup] Removed setter that is only used for tests