switch to class check to avoid css dep in tests