test could doesn’t check endstops real code does
test codes has a fixed feed rate, real code attempts to move at what ever feed rate you tell it. (regardless of if you machine can do it or not)
check both of these
M119 is your friend for endstops
M203 sets max feed rate, M503 to view current settings.