fixed error msg, fixed test, caching with artificial docs