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. An integer range supplies the categories. A lookup for the first observed label should succeed.
2. An exponentially weighted moving average of a numeric series using pandas. An interior observation is missing. With alpha one half, adjust=False and ignore_na=False, the elapsed positions should affect the weights in the next value.
3. Diagnostic messages from comparing two numeric data frames for exact equality. Two distinct numbers can round to the same number at the configured display precision. A failure should show the reviewer which values differ.
