fix compilation of unit tests