swapped order of asign
simplified and extended tests
multiple document test