Workaround a bunch of stupid warnings in unit tests