test document ajax publishing