Remove compiler warning from test