Refactoring UnitTest to use Moq

ShareProfileTest failed for a strange reason :(