Fix test setup that cause issue under buildhive.