Use correct Optional, fix tests

- Do not use Java8 Optional!
- Fix ManualLocalTransactionsConfidenceTest
- Add a new test to ManualLocalTransactionsConfidenceTest to ensure
  the same contract as given befor for RequiredBehavior for RequiresNewBehavior
- (unfinished test work for the differnet behaviors)