fix(tests): unsafe file is tested only in stream mode