added test for sample subset