Ruby paralel test and bug fixes