Minor optimizations
Added Random and Failing Tests