CHOP-16. Initial unit tests.

Signed-off-by: Robert Chu <robert@wibidata.com>