integration: add basic discovery tests

for #1399 
if you need to tell something to the reviews, you'd better add it as a comment in the code or make the code easier to understand.