Adding trailing and ending lines to test resources