fixing compilation errors in tests