ruby test code stuff