Add a class option to TestBackgroundProcessor to commit immediately

defaults to the old behavior (delay and add to commits) but
allows test to force commands to process immediately