clean up dictionary membership tests