Making unit tests compile