Adding tests and fixing a bug in OkOpenClosed when OpenClosedProperty is null