Type in the doc and added automated test