fix n+1 test