Test that the format parameter is set properly