Add functional tests for Model.add_machine()