added inside/outside loop tests