Backported proper updateAccessedAttributes test

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

Issue: SPR-11804
(cherry picked from commit a2ef2c9)