Subsample code styling fixed and added group access tests