tests: fix lifo unittest

The API was violated resulting in an array overrun.