Remove unused method in DocumentTest

Remove method 'createApplication' in DocumentTest.php and add method 'tearDown'