update test by type