Device test