adding Unit tests for mongo