Add integration test for "gradle install"

See gh-1105