Added tests for sensor data processing and global state update