removed extra newlines from test to make it pass, fixed possible header parsing issue