[tests] fix compiler warnings