add empty tests
add test/print_safe_buffer

This will help generate expected results for test cases.
.gitignore: ignore make check logs trs files, etc