fix compilation errors in tests