Added tests for the mood function, that check generalization to 2d case and effect of changing parameter order
generalize mood function to 2d case