fixed the failing test and added the -Ywarn-value-discard flag