Ensure assets are on the classpath in integration tests

Backport of #3412 to 2.3.x branch.