add trailing newline to all files
update tests & rename test function