add more tests for the doc controller