refactor static page test to check for relevant keywords