add test for filebased discovery