Adding a little test for mat_masked_logdot.