Class of Bell-Clauser-Horne inequalities for testing quantum nonlocality