Test random errors, optimize dependencies and methods count