Fix bug with dynamically added studies and tests