hasText() matcher issue