Tests for functions mapOptOrElse() and functionShouldNotBeCalled().