fix tests & MongoDB backend