Fix 2 compiler warnings in managed tests