Change SQL in test