Expense tests. Discovered a bug accidentally and fixed it at the same time