Testing dot product and normalization