added document tests. how tedious