unit tests for dchen