working 1 sample - with testing