Fixed a warning in a test