Add more file UTI unit tests

These tests are for #1742 and #1841, strangely, both tests pass under master, and under release :/

Does this mean that the issue got fixed somewhere?