be more explicit in JS unit tests - caused by accessibility issues

cc @jancborchardt @DeepDiver1975