FLUID-5220: Fixed the unit tests.

Removed a test for the afterRender listener which is no longer used.