integration: add basic discovery tests

for #1399 
move line 147 to here?