Update doc
Add more tests.