Mac test readlines

Fixes issue #12