WIP: client unit tests.
fix for centre's study add panel.