Some unit tests for mixins.

Close to all the tests needed-- it's a tiny bit of code.