math: add special case test vectors