Remove warnings from some test circumstances

Tested-by: Mark Somerville <mark@crocodile.is> [Arch, MRI 2.1.4]
Signed-off-by: Mark Somerville <mark@crocodile.is>