prepare tests for webpage listeners