test routing for Posts Controller and resource in Routes file