add respond_with in controllers and extra test