overhauled testing suite and small change in delK

delete key minor mod