Use fixed size segment to avoid segment fault and increase speed
Add test.sh