test: fix file mode testing