Chapter unit tests