discovery test implemetation