Fixed a bug in overlap test. Added same test for the second array.
Adding a unit test for the overlapping dot product.