Add minimal tests for Document model