Newlines class with basic tests