loop, if and func call tested