Added unit tests to detect sparse_dot bug.