unittests: Unit test the file suffix checking