testing smart functions