Add tests for KDEF-trained database