add mixin test and update docstrings.