Fix unit test
Fix unit tests loop