Testing in the Internet of Things