I was creating a map when I found this bug. I used this command:
/execute @e[type=ArmorStand] ~ ~ ~ /testfor @a[dx=31,dy=0,dz=31]
But it was possible for me to detect myself when I was one block lower than the armour stand which should not be possible unless I set the dy to -1
Delta parameters take into consideration your bounding box. Your head is within the selection area.
You can view bounding boxes by pressing F3+B.