integration testing for legal design