Test added and doc updated