unit and acceptance tests for dchen