Add temp code in moa_test for plotting, and fix a bug in FitObserver