Adds loan integration test