doc with tests