new tests and doc