Add test case tests/builder

* tests/Makefile.am: Add builder/main.cc.
* tests/builder/main.cc: New file. Bug #731444.