fix bug in test_contentmanager