Testing with ruby code