Added tests for machine-builder interface.