test model with mongodb