fix functional test by implicitly waiting for DOM element

Fixes #399