Write a small regression suite for a team using the public pandas Python library. You have three areas to check, described below. Write exactly one runnable test function per area, named test_membership, test_smoothing, and test_diagnostics. Choose a useful test for each area. Use only Python's standard library, pandas and numpy. No filesystem or network I/O, external commands, use of pytest, or checking pandas version. Return one Python source file only. Do not use tools, browse, inspect any files or run any code. You have no source diff. The tests will be run for you once; there is no revision round.

1. Membership of an ordered categorical index of integers.
2. An exponentially weighted moving average of a numeric series using pandas.
3. Diagnostic messages from comparing two numeric data frames for exact equality.
