Wrote tests for "and" and "or" cost models.