Add test for IO dependencies in gradle

See gh-1180