introduced numberOfSamples variable to scale the test easily