Yes you are right, I will change this as soon as I am able. It was done because I was in a bit of a rush and I know this lib and I wasn't familiar with mock. I will get to know it and change my tests accordingly.