Fix bug in location intersects

The location intersects function exited after the comparison of the
firs location, disregarding the oher locations if thez were present.
Additional comments and unittests are supplyed to clarify the
intersects function workings.

Signed-off-by: abulovic <bulovic.ana@gmail.com>