Increasing the Reliability of Wireless Sensor Networks with a Unit Testing Framework