updated test example and doc