Tests forfilename filter.