fix tests compile errors