correctly visit direction text node on postgres and correct test to only have one space before direction