add test for filebased discovery
improve accept test for filebased discovery