added tests for function randomlyGenerateNumber()