added tests for document views done with rest framework