add mongo mapping parser test and fix compilation error