Move part of TabSelector init to constructor

 to fix intermittently failing tests