rest-python: added tests for creating content-based resource