Add tests for FluxActions.
Fix bugs, handle bad inputs.