add advanced design document features
add tests for design document features