improve accept test for filebased discovery