For Rails testing