add mongoose dependency plus tests