Fix line ending
Split the test into proper functions
Split tests into proper functions