Fixed KDE tests, started implementing in SEPP.  TODO: need a decoupled KDE class now unfortunately.