refactored data_loader spec
refactored statistics spec