Fix build error in BaseTest