test afm setup