Please use code tags while using Inputs/codes/commands into your posts as per forum rules.
You could go through the rules of forum into as follows link too.
Now coming onto your requirement, could you please try following and let me know if this helps you.
find -type f -exec grep -l "test_text" {} \+
Please try above and let us know how it goes, if you have more conditions and requirements please mention all in post too.
NOTE: Above will provide you all the files details(only names of files) which have string test_text in them.