[PLAT-4499] Add hashCode and equals to option function provider
[PLAT-4534] Test for barrier option