Add smote test for segfault

Because base/src is small, then include test there. If its size increase
do not hesitate to split it.
Do not free pointer owned by ComponentCreator(BNC#841623)
changes