add unit test using Json and PlainText contentType