Add test for build message exception