random work and tests