Tests device functionality.