main machine test