improve auto test