refactoring test_helper, adding test for document