add pathfinder spec initialization

add spec for distance to method
add spec for humanoid factory