bspkde and some unit tests working