Tests on CBD implementation