update tests and doc