Test Rails Repository