Added support for simple REST-based testing.