added reset to default feature to device state, passing unit tests