Warnings fixed in tests