fix warnings when running tests