rails backend working tests