removing unecessary trailing spaces and end tags
removing empty end lines from tests/