Added test for PostResource. Added status codes to some responses.