add test/img to gitignore

It's now a temp dir
fix and add tests, now ~100% coverage