refactoring
adds a test for mixin