Removing redundant mongo call
Fixing test