changes to advice and tests to add 'addMixin' function