working rb with test