With the latter two tests satisfied, all that separates X Co. from a 2012 bonus deduction is the first test: the fact of the bonus liability must be fixed during 2012.
FORBES: When Can An Employer Deduct Accrued But Unpaid Year-End Bonuses To Employees?