added NaN test for dot_self
added general tests for dot_product
added NaN test for dot_product