integration: add basic discovery tests

for #1399 
k