Test ruby code