Create testfunction