complete get and post for text; add tests