Remove a compiler warning in test-spec