refactoring test according to Dominic's note
https://github.com/w3c/web-platform-tests/pull/609#discussion_r10871399