setup mongoose and test with local mongodb