data mapper unit test for ::build