Test case done using Moq