adding test to match possible unauthorized file inclusion
appling the fix to all the patterns in tests
addiing the fix