[JS API] Fix js api unit test to not use exact names of ops (#33624)
### Details:
- Now the test checks only the first part of its autogenerated name and
if op appeared at least once in model
### Tickets:
- [CVS-179371](https://jira.devtools.intel.com/browse/CVS-179371)