TST: add test for duplicated frame/test_analytics
Preparation for #21645

Added some parametrised tests for `duplicated`.

In addition, I reordered the tests slightly. Currently, the tests in `tests/frame/test_analytics.py` test the following functions in order:
```
drop_duplicates
duplicated
duplicated
drop_duplicates
drop_duplicates
[...]
```

Since I am (and will be) adding several tests for `duplicated`, I'd like to group them within the code, and moved the two existing tests for `duplicated` to the top of that section.
