Warnings avoided in tests constructing the object