Improve testing for fs.list