tests and implementation for device-state and unavailablity features.