moved tests to the beginnings of example docs