modified document testcase and add padding top and bottom