finish unit tests for AjaxCache and add View doc