Test that file methods warn. Closes gh-909.