Fixed test and doc.