Variance component test for heterogeneity in genetic association studies with outcome stratified samples