Fix testcase fo p=8
Fix another edge case
Update dist/