let output_interval take effect and add unit test for fluid.