Fixed a naming issue

When running the tests if files where named abc.string1 abc.string2 they
would be considered just 1 test because the py script only took in the
first part before the dot. Changed to include the whole filename without
the extension