fleshed out DocumentTest, still incomplete though