added funct tests