[Spec] Fix stubbing removed method resulting in test taking 10s
[Spec] Correctly stub the sources used for search

Before, we was stubbing something which wasn't called and thus searching
the whole master repository. This change shaves 20 seconds off the
testing time.