fix membership tests