Demonstrate use of read, writer, state in tests
Added flatMap to Option taking a Closure