add loop test
fix to previous