more tests and fixes
add nl to `make test`