Add tests. Fix non-animated toggling of bars.