we should rather fix the second warning. also, we should maybe test the type and text of warning here, so that we know it is the one we expect ;)