add demo testing function (draft)