Added test for defined 'shared' method