dot product passes tests