Improve gitignore file
Add test case to issue #22 and #24