add test for calc_l2norm() nd calc_similarity()