added test and fixed hasPrefix/hasSuffix bug in simplifySet, bump patch