testing code for rails