fix build errors in test