fixing test-bugs: limiting on 5 layers