Een ei-in-worm (EIW) test is een handige methode om eierleggende gedrag te kwantificeren. Veranderingen in eileg kan een gedragsmatige reactie van het modelorganisme zijn Caenorhabditis elegans Aan potentieel schadelijke stoffen uit het milieu, zoals die geproduceerd door pathogene bacteriën.