Modified file resolution in order to allow tests to have any extension.