Fix failing test for cached elements.