Add tests for debug state changes