tests: fix lifo unittest

The API was violated resulting in an array overrun.
Merge pull request #1614 from LudwigOrtmann/unittests_fix

tests: fix lifo unittest