add hidesWhenStopped property.
Initially hidden if hidesWhenStopped set.
Add tests for hidesWhenStopped.