fixed the mongostore error with testing as well as only log in dev