added mongodb test
added patterns