Some tests + new bug fix

I add test for my previos pull request
and fix bug of return inside of forEach:
  then you do return in forEach, you don't break loop, so callback may calls many times (for each model file)