Testing a prototype of the neutron magnetic resonance stabilization system