Added functional test to add a thread.

Adding a post sets an error value to the request on error.