Add loans integration test