Testing for association in genetic studies