unit tests for mixins