fix compile errors of the tests