Added ruby test mode