Backported proper updateAccessedAttributes test

Issue: SPR-11738
(cherry picked from commit 6188550)
Refined check for NoClassDefFoundError in getTestExecutionListeners()

Issue: SPR-11804
(cherry picked from commit 41ed228)