Unit tests for FutureOperation, fixes
Small fix to state check