Add tests for check_max_open_files.sh