Magnetospheric plasma boundaries: a test of the frozen-in magnetic field theorem