Refactoring testController for faster rendering