[core]unit tests on Tuples and MapBuilder