Rework tests making the code slightly simpler & replacing '\n'
with NL constant.